<?php
class Tools{
	//单姓
	private $single_home_name = '';//单姓
	//复姓
	private $double_home_name;//
	//地理位置
	private $geo_sign = '省市县镇乡村区街路河桥州山';
	//全角字母
	private $sbc_alpha = 'ａｂｃｄｅｆｇｈｉｊｋｌｍｎｏｐｑｒｓｔｕｖｗｘｙｚＡＢＣＤＥＦＧＨＩＪＫＬＭＮＯＰＱＲＳＴＵＶＷＸＹＺ';
	//半角字母
	private $dbc_alpha = 'abcdefghijklmnopqrsuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';
	//全角数字
	private $sbc_numeric = '０１２３４５６７８９';
	//半角数字
	private $dbc_numeric = '0123456789';
	//中文标点符号
	private $zh_punctuation = '｀－＝［］、‘；／。，｜？》《：“｛｝＋—）（＊…％￥＃·！～’”〕〈〉「」『』〖〗【】＜＞';
	//英文标点符号
	private $en_punctuation = '';	
	public function __construct(){
		$this->single_home_name = '敖白班包宝保鲍毕边卞柏蔡曹岑柴昌常车陈成程迟池褚';
		$this->single_home_name .= '楚储淳崔刀邓狄刁丁董窦杜端段樊范方房斐丰封冯凤伏';
		$this->single_home_name .= '傅甘高耿龚宫勾苟辜谷顾官关管桂郭韩杭郝禾何贺衡洪';
		$this->single_home_name .= '侯胡花黄稽姬纪季简翦姜江蒋焦晋靳荆居康空孔匡邝况';
		$this->single_home_name .= '蓝郎朗乐冷李理厉励连廉练良梁廖凌刘柳隆龙楼娄吕路';
		$this->single_home_name .= '骆麻满茅毛梅孟苗缪闵明牟倪聂牛钮农潘庞裴彭皮朴平';
		$this->single_home_name .= '蒲溥浦戚祁钱强秦丘邱仇裘屈瞿权饶任荣容阮瑞芮赛单';
		$this->single_home_name .= '商邵佘申沈盛石寿舒宋苏孙邰谭谈汤唐陶滕田佟仝屠涂';
		$this->single_home_name .= '汪王危韦魏卫蔚闻翁巫邬武吴奚习夏鲜席冼项萧解辛邢';
		$this->single_home_name .= '幸熊徐许宣薛荀颜阎言严彦晏燕杨阳姚叶蚁易殷银尹应';
		$this->single_home_name .= '英游于於鱼虞俞余禹喻郁尉袁岳云臧曾查翟湛张赵甄郑';
		$this->single_home_name .= '钟周朱竺祝庄卓宗邹祖左肖';
		
		$this->double_home_name = "东郭 公孙 皇甫 慕容 欧阳 单于 司空 司马 司徒 澹台 诸葛";
	}
	
	//是否字母
	function is_alpha($char){
		$ord = ord($char);
		return ($ord>=65 && $ord<=90) || ($ord>=97 && $ord<=122);
	}
	
	//是否数字
	function is_num($char){
		$ord = ord($char);
		return $ord>= 48 && $ord <=57;
	}
	
	//是否姓名
	function is_name($word){
		
	}
	
	//是否复姓中文名
	function is_double_name($word){
		
	}
	
	//是否外国人名字
	function is_foreign_name($word){
		
	}
	
	//是否地理名词
	function is_geo($word){
		
	}
	
	private function markword($word){
		
	}
	
	private function _filter_space($word){
		
	}
	
	//过滤中文标点
	private function _filter_zh_punctuation($word){
		
	}
	
	//过滤英文标点
	private function _filter_en_punctuation($word){
		
	}
	
}